<?php


if (! function_exists('_true')) {
	function _true() {
		return "<i class='fa fa-check text-green'></i>";
	}
}

if (! function_exists('_false')) {
	function _false() {
		return "<i class='fa fa-close text-red'></i>";
	}
}

if (! function_exists('_label')) {
	function _label($text, $type = 'default') {
		return "<span class='label label-{$type}'>{$text}</span>";
	}
}

if (! function_exists('_grid_image')) {
	function _grid_image($imagePath) {
		$imagePath = img_path($imagePath);
		$image = "<div
			style='
				width: 60px;
				height: 60px;
			'
		>
			<img src=\"{$imagePath}\" height=\"60\">
		</div>";
		return $image;
	}
}


if (! function_exists('_form_image')) {
	function _form_image($imagePath) {
		$image = "<div
			style='
				width: 400px;
				height: 400px;
				background: #eeeeee;
				border: 2px #bbbbbb solid;
				overflow: scroll;
			'
		>
			<img src=\"{$imagePath}\">
		</div>";
		return $image;
	}
}
